/**
 * 获取全局变量
 */

import { ComponentInternalInstance, getCurrentInstance } from 'vue';

export default function create() {
    const { appContext } = getCurrentInstance() as ComponentInternalInstance;

    // 获取全局变量
    const proxy = appContext.config.globalProperties;
    return {
        proxy,
    };
}
